<?php
/**
 * Created by PhpStorm.
 * User: ytl003
 * Date: 2018/10/11
 * Time: 下午3:47
 */

namespace app\api\validate;


class SiteSettingValidate extends BaseValidate
{
    protected $rule = [
        'type' => 'require',
        'id' => 'integer',
        'time' => 'require|array',
        'name' => 'require',
        'desc' => 'max:255',
        'address' => 'max:255',
        'switch' => 'boolean',
        'is_need_annex' => 'boolean',
        'note' => 'max:255',
        'img_url' => 'require',
        'table_data' => 'require|array',
        'annex' => 'array'
    ];
}